﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.Mvc;

namespace Peninsula.DataAccess.POCO
{
    [Table("StoreManger")]
    public class StoreManger : BaseEntity
    {
        public StoreManger()
        {
            QQEmailCode = "0123456";
        }
        [Required(ErrorMessage = "必须填写")]
        [StringLength(35)]
        [DisplayName("QQ邮箱授权码")]
        public string QQEmailCode { get; set; }

        [StringLength(50)]
        [DisplayName("所属店面")]
        public string StoreId { get; set; }

        [ForeignKey("StoreId")]
        public virtual Store Store { get; set; }

        [NotMapped]
        public List<SelectListItem> Stores { get; set; }
         
    }
}
